package com.tnmi.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @version 1.0
 * @Classname Entity
 * @Description TODO
 * @Date 2023/7/1 23:09
 * @Created by tnmi
 **/
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
public class Entity<T> extends SuperEntity<T>{

    public static final String UPDATE_TIME = "updateTime";
    public static final String UPDATE_USER = "updateUser";

    @TableField(value = "update_time", fill= FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    protected LocalDateTime updateTime;
    @TableField(value = "update_user",fill= FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人")
    protected T updateUser;
}
